package com.epam.qanda.db.service;

import com.epam.qanda.db.dao.impl.UserAnswerLikeDao;


public class UserAnswerLikeService {

	public <T> void create(T element){
		new UserAnswerLikeDao().create(element);
	}
	
	public <T> T read(Integer id){
		return new UserAnswerLikeDao().read(id);
	}
	
	public void delete(Integer id){
		new UserAnswerLikeDao().delete(id);
	}
	
	public <T> void update(T element){
		new UserAnswerLikeDao().update(element);
	}
	
	public <T> T getUserAnswer(Integer userId, Integer answerId) {
		return new UserAnswerLikeDao().getUserAnswer(userId,answerId);
	}
}
